<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    let students = ['王五', '张三', '李四'];
    let [s1, ...s2] = students;
    console.log(s1);  // 王五
    console.log(s2);  // ["张三", "李四"]
  </script>
</body>
</html>